package com.zc.service.two.impl;

import com.zc.service.two.CashSuper;

public class CashReturn implements CashSuper {
    private double cashMoney = 0;

    public CashReturn(double cashMoney) {
        if(cashMoney >300){
            this.cashMoney = 100;
        }
    }

    @Override
    public double acceptCash(double cash) {
        return cash - cashMoney;
    }
}
